package lab01.test02;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {


        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();


        int count = 0;
        int result = a ^ b;

        while (result != 0) {

            if ((result & 1) == 1) {

                count++;
            }

            result /= 2;
        }

        System.out.println(count);
    }


}
